<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>Deferred (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>

  <script type="text/javascript" src="//www.google.com/jsapi"></script>
  <script type="text/javascript">
     google.load("visualization", "1", {packages:["orgchart"]});
     var _loadingVisualizations = true;
  </script>

  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
        <span class="fn">async.Deferred</span>
        <span>Extends</span>
        <span class="fn-name">
          Object
        </span>
</div>

<div class="g-section g-tpl-75-25">
  <div class="g-unit g-first" id="description">
    A Deferred represents the result of an asynchronous operation. A Deferred
instance has no result when it is created, and is &amp;quot;fired&amp;quot; (given an initial
result) by calling <code>callback</code> or <code>errback</code>.

Once fired, the result is passed through a sequence of callback functions
registered with <code>addCallback</code> or <code>addErrback</code>. The functions may
mutate the result before it is passed to the next function in the sequence.

Callbacks and errbacks may be added at any time, including after the Deferred
has been &amp;amp;amp;amp;amp;quot;fired&amp;amp;amp;amp;amp;quot;. If there are no pending actions in the execution sequence
of a fired Deferred, any new callback functions will be called with the last
computed result. Adding a callback function is the only way to access the
result of the Deferred.

If a Deferred operation is cancelled, an optional user-provided cancellation
function is invoked which may perform any special cleanup, followed by firing
the Deferred&amp;amp;amp;amp;amp;#39;s errback sequence with a <code>CancelledError</code>. If the
Deferred has already fired, cancellation is ignored.
  </div>


        <div class="g-unit" id="useful-links">
          <div class="title">Useful links</div>
          <ol>
            <li><a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html"><span class='source-code-link'>Source Code</span></a></li>
            <li><a href="http://code.google.com/p/closure-library/source/browse/closure/third_party/closure/goog/mochikit/async/deferred.js">Git</a></li>
          </ol>
        </div>
</div>






<h2 class="g-first">Inheritance</h2>
<div class='gviz-org-chart-container goog-inline-block'>
<table class='gviz-org-chart' style='display:none'>
  <tr><td>goog.async.Deferred</td><td></td></tr>
</table>
</div>
<div class='gviz-org-chart-container goog-inline-block'>
<table class='gviz-org-chart' style='display:none'>
      <tr><td><span class="type"><a href="class_goog_async_DeferredList.html">goog.async.DeferredList</a></span></td><td>goog.async.Deferred</td></tr>
      <tr><td><span class="type"><a href="class_goog_result_DeferredAdaptor.html">goog.result.DeferredAdaptor</a></span></td><td>goog.async.Deferred</td></tr>
  </table>
</div>




  <h2>Constructor</h2>
      <div class="fn-constructor">
    goog.async.Deferred(<span><span class="arg">opt_onCancelFunction</span>,&nbsp;<span class="arg">opt_defaultScope</span></span>)
  </div>

   <h3>Parameters</h3>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_onCancelFunction</span>
        : <div class="fullType">(<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function">Function</a></span><span>&nbsp;|&nbsp;</span><span class="type">null</span><span>&nbsp;|&nbsp;</span><span class="type">undefined</span>)</div>
        <div class="entryOverview">A function that will be called if the Deferred is cancelled. If provided, this function runs before the Deferred is fired with a <code>CancelledError</code>.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_defaultScope</span>
        : <div class="fullType">(<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span><span>&nbsp;|&nbsp;</span><span class="type">null</span><span>&nbsp;|&nbsp;</span><span class="type">undefined</span>)</div>
        <div class="entryOverview">The default object context to call callbacks and errbacks in.</div>
     </td>
   </tr>
  </table>


<h2>Instance Methods</h2>


  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>







<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_async_Deferred.html">
              goog.async.Deferred
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.addBoth"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">addBoth<span class="args">(<span class="arg">f</span>,&nbsp;<span class="arg">opt_scope</span>)</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>
      </div>


     <div class="entryOverview">
       Registers one function as both a callback and errback.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">f</span>
        : <div class="fullType"><span>?</span><span class="type">function (this:T, ?): </span></div>
        <div class="entryOverview">The function to be called on any result.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_scope</span>
        : <div class="fullType">(<span class="type">T</span><span>&nbsp;|&nbsp;</span><span class="type">undefined</span>)</div>
        <div class="entryOverview">An optional scope to call the function in.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>&nbsp;
            This Deferred.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line365">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.addCallback"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">addCallback<span class="args">(<span class="arg">cb</span>,&nbsp;<span class="arg">opt_scope</span>)</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>
      </div>


     <div class="entryOverview">
       Register a callback function to be called with a successful result. If no
value is returned by the callback function, the result value is unchanged. If
a new value is returned, it becomes the Deferred result and will be passed to
the next callback in the execution sequence.

If the function throws an error, the error becomes the new result and will be
passed to the next errback in the execution chain.

If the function returns a Deferred, the execution sequence will be blocked
until that Deferred fires. Its result will be passed to the next callback (or
errback if it is an error result) in this Deferred's execution sequence.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">cb</span>
        : <div class="fullType"><span>?</span><span class="type">function (this:T, ?): </span></div>
        <div class="entryOverview">The function to be called with a successful result.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_scope</span>
        : <div class="fullType">(<span class="type">T</span><span>&nbsp;|&nbsp;</span><span class="type">undefined</span>)</div>
        <div class="entryOverview">An optional scope to call the callback in.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>&nbsp;
            This Deferred.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line328">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.addCallbacks"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">addCallbacks<span class="args">(<span class="arg">cb</span>,&nbsp;<span class="arg">eb</span>,&nbsp;<span class="arg">opt_scope</span>)</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>
      </div>


     <div class="entryOverview">
       Registers a callback function and an errback function at the same position
in the execution sequence. Only one of these functions will execute,
depending on the error state during the execution sequence.

NOTE: This is not equivalent to <code>def.addCallback().addErrback()</code>! If
the callback is invoked, the errback will be skipped, and vice versa.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">cb</span>
        : <div class="fullType">(<span>?</span><span class="type">function (this:T, ?): </span><span>&nbsp;|&nbsp;</span><span class="type">null</span>)</div>
        <div class="entryOverview">The function to be called on a successful result.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">eb</span>
        : <div class="fullType">(<span>?</span><span class="type">function (this:T, ?): </span><span>&nbsp;|&nbsp;</span><span class="type">null</span>)</div>
        <div class="entryOverview">The function to be called on an unsuccessful result.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_scope</span>
        : <div class="fullType">(<span class="type">T</span><span>&nbsp;|&nbsp;</span><span class="type">undefined</span>)</div>
        <div class="entryOverview">An optional scope to call the functions in.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>&nbsp;
            This Deferred.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line386">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.addErrback"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">addErrback<span class="args">(<span class="arg">eb</span>,&nbsp;<span class="arg">opt_scope</span>)</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>
      </div>


     <div class="entryOverview">
       Register a callback function to be called with an error result. If no value
is returned by the function, the error result is unchanged. If a new error
value is returned or thrown, that error becomes the Deferred result and will
be passed to the next errback in the execution sequence.

If the errback function handles the error by returning a non-error value,
that result will be passed to the next normal callback in the sequence.

If the function returns a Deferred, the execution sequence will be blocked
until that Deferred fires. Its result will be passed to the next callback (or
errback if it is an error result) in this Deferred's execution sequence.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">eb</span>
        : <div class="fullType"><span>?</span><span class="type">function (this:T, ?): </span></div>
        <div class="entryOverview">The function to be called on an unsuccessful result.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_scope</span>
        : <div class="fullType">(<span class="type">T</span><span>&nbsp;|&nbsp;</span><span class="type">undefined</span>)</div>
        <div class="entryOverview">An optional scope to call the errback in.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>&nbsp;
            This Deferred.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line352">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.assertNotDeferred_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">assertNotDeferred_<span class="args">(<span class="arg">obj</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Asserts that an object is not a Deferred.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">obj</span>
        : <div class="fullType"><span class="type">*</span></div>
        <div class="entryOverview">The object to test.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line302">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.awaitDeferred"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">awaitDeferred<span class="args">(<span class="arg">otherDeferred</span>)</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>
      </div>


     <div class="entryOverview">
       Makes this Deferred wait for another Deferred&amp;#39;s execution sequence to
complete before continuing.

This is equivalent to adding a callback that returns <code>otherDeferred</code>,
but doesn&amp;amp;#39;t prevent additional callbacks from being added to
<code>otherDeferred</code>.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">otherDeferred</span>
        : <div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>
        <div class="entryOverview">The Deferred to wait for.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>&nbsp;
            This Deferred.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line422">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.branch"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">branch<span class="args">(<span class="arg">opt_propagateCancel</span>)</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>
      </div>


     <div class="entryOverview">
       Creates a branch off this Deferred's execution sequence, and returns it as a
new Deferred. The branched Deferred's starting result will be shared with the
parent at the point of the branch, even if further callbacks are added to the
parent.

All branches at the same stage in the execution sequence will receive the
same starting value.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_propagateCancel</span>
        : <div class="fullType">(<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span><span>&nbsp;|&nbsp;</span><span class="type">undefined</span>)</div>
        <div class="entryOverview">If cancel() is called on every child branch created with opt_propagateCancel, the parent will be cancelled as well.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>&nbsp;
            A Deferred that will be started with the computed result from this stage in the execution sequence.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line442">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.branchCancel_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">branchCancel_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Handle a single branch being cancelled. Once all branches are cancelled, this
Deferred will be cancelled as well.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line218">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.callback"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">callback<span class="args">(<span class="arg">opt_result</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Fire the execution sequence for this Deferred by passing the starting result
to the first registered callback.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_result</span>
        : <div class="fullType"><span class="type">*</span></div>
        <div class="entryOverview">The starting result.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line277">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.cancel"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">cancel<span class="args">(<span class="arg">opt_deepCancel</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Cancels a Deferred that has not yet been fired, or is blocked on another
deferred operation. If this Deferred is waiting for a blocking Deferred to
fire, the blocking Deferred will also be cancelled.

If this Deferred was created by calling branch() on a parent Deferred with
opt_propagateCancel set to true, the parent may also be cancelled. If
opt_deepCancel is set, cancel() will be called on the parent (as well as any
other ancestors if the parent is also a branch). If one or more branches were
created with opt_propagateCancel set to true, the parent will be cancelled if
cancel() is called on all of those branches.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_deepCancel</span>
        : <div class="fullType">(<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span><span>&nbsp;|&nbsp;</span><span class="type">undefined</span>)</div>
        <div class="entryOverview">If true, cancels this Deferred's parent even if cancel() hasn't been called on some of the parent's branches. Has no effect on a branch without opt_propagateCancel set to true.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line182">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.chainDeferred"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">chainDeferred<span class="args">(<span class="arg">otherDeferred</span>)</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>
      </div>


     <div class="entryOverview">
       Links another Deferred to the end of this Deferred's execution sequence. The
result of this execution sequence will be passed as the starting result for
the chained Deferred, invoking either its first callback or errback.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">otherDeferred</span>
        : <div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>
        <div class="entryOverview">The Deferred to chain.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>&nbsp;
            This Deferred.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line404">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.check_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">check_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Verifies that the Deferred has not yet been fired.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line262">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.continue_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">continue_<span class="args">(<span class="arg">isSuccess</span>,&nbsp;<span class="arg">res</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Called after a blocking Deferred fires. Unblocks this Deferred and resumes
its execution sequence.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">isSuccess</span>
        : <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span></div>
        <div class="entryOverview">Whether the result is a success or an error.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">res</span>
        : <div class="fullType"><span class="type">*</span></div>
        <div class="entryOverview">The result of the blocking Deferred.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line234">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.errback"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">errback<span class="args">(<span class="arg">opt_result</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Fire the execution sequence for this Deferred by passing the starting error
result to the first registered errback.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_result</span>
        : <div class="fullType"><span class="type">*</span></div>
        <div class="entryOverview">The starting error.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line289">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.fire_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">fire_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Exhausts the execution sequence while a result is available. The result may
be modified by callbacks or errbacks, and execution will block if the
returned result is an incomplete Deferred.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line493">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.hasErrback_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">hasErrback_<span class="args">()</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span></div>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span></div>&nbsp;
            Whether an errback exists in the remaining sequence.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line478">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.hasFired"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">hasFired<span class="args">()</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span></div>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span></div>&nbsp;
            Whether the execution sequence has been started on this Deferred by invoking <code>callback</code> or <code>errback</code>.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line457">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry protected">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.isError"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">isError<span class="args">(<span class="arg">res</span>)</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span></div>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">res</span>
        : <div class="fullType"><span class="type">*</span></div>
        <div class="entryOverview">The latest result in the execution sequence.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span></div>&nbsp;
            Whether the current result is an error that should cause the next errback to fire. May be overridden by subclasses to handle special error types.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line469">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.prototype.updateResult_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryName">updateResult_<span class="args">(<span class="arg">isSuccess</span>,&nbsp;<span class="arg">res</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Updates the current result based on the success or failure of the last action
in the execution sequence.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">isSuccess</span>
        : <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span></div>
        <div class="entryOverview">Whether the new result is a success or an error.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">res</span>
        : <div class="fullType"><span class="type">*</span></div>
        <div class="entryOverview">The result.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line248">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>




<h2>Instance Properties</h2>







<div>
       <div class="desc">
         Defined in
         <span class="fn-name">
            <a href="class_goog_async_Deferred.html">
              goog.async.Deferred
            </a>
         </span>
       </div>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.async.Deferred.prototype.blocked_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">blocked_</span>
        : <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span></div>
     </div>


     <div class="entryOverview">
       Whether the Deferred is blocked waiting on another Deferred to fire. If a
callback or errback returns a Deferred as a result, the execution sequence is
blocked until that Deferred result becomes available.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line115">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.async.Deferred.prototype.blocking_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">blocking_</span>
        : <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span></div>
     </div>


     <div class="entryOverview">
       Whether this Deferred is blocking execution of another Deferred. If this
instance was returned as a result in another Deferred's execution sequence,
that other Deferred becomes blocked until this instance's execution sequence
completes. No additional callbacks may be added to a Deferred once it
is blocking another instance.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line127">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.async.Deferred.prototype.branches_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">branches_</span>
        : <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span></div>
     </div>


     <div class="entryOverview">
       The number of Deferred objects that have been branched off this one. This
will be decremented whenever a branch is fired or cancelled.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line163">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.async.Deferred.prototype.defaultScope_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">defaultScope_</span>
        : <div class="fullType">(<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span><span>&nbsp;|&nbsp;</span><span class="type">null</span>)</div>
     </div>


     <div class="entryOverview">
       The default scope to execute callbacks and errbacks in.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line80">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.async.Deferred.prototype.fired_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">fired_</span>
        : <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span></div>
     </div>


     <div class="entryOverview">
       Whether the Deferred has been fired.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line89">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.async.Deferred.prototype.hadError_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">hadError_</span>
        : <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span></div>
     </div>


     <div class="entryOverview">
       Whether the last result in the execution sequence was an error.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line97">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.async.Deferred.prototype.onCancelFunction_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">onCancelFunction_</span>
        : <div class="fullType">(<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function">Function</a></span><span>&nbsp;|&nbsp;</span><span class="type">null</span><span>&nbsp;|&nbsp;</span><span class="type">undefined</span>)</div>
     </div>


     <div class="entryOverview">
       Optional function that will be called if the Deferred is cancelled.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line73">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.async.Deferred.prototype.parent_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">parent_</span>
        : <div class="fullType">(<span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span><span>&nbsp;|&nbsp;</span><span class="type">null</span>)</div>
     </div>


     <div class="entryOverview">
       If this Deferred was created by branch(), this will be the "parent" Deferred.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line154">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.async.Deferred.prototype.result_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">result_</span>
        : <div class="fullType"><span class="type">*</span></div>
     </div>


     <div class="entryOverview">
       The current Deferred result, updated as callbacks and errbacks are executed.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line105">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.async.Deferred.prototype.sequence_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">sequence_</span>
        : <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>&gt;</div>
     </div>


     <div class="entryOverview">
       Entries in the sequence are arrays containing a callback, an errback, and
an optional scope. The callback or errback in an entry may be null.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line66">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.async.Deferred.prototype.silentlyCancelled_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">silentlyCancelled_</span>
        : <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span></div>
     </div>


     <div class="entryOverview">
       Whether the Deferred has been cancelled without having a custom cancel
function.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line136">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.async.Deferred.prototype.unhandledExceptionTimeoutId_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">unhandledExceptionTimeoutId_</span>
        : <div class="fullType"><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span></div>
     </div>


     <div class="entryOverview">
       If an error is thrown during Deferred execution with no errback to catch it,
the error is rethrown after a timeout. Reporting the error after a timeout
allows execution to continue in the calling context.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line146">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
</div>




<h2>Static Methods</h2>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.call"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.async.Deferred.</span><span class="entryName">call<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line59">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.cancelled"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.async.Deferred.</span><span class="entryName">cancelled<span class="args">()</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>
      </div>


     <div class="entryOverview">
       Creates a Deferred that has already been cancelled.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>&nbsp;
            The new Deferred.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line602">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.fail"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.async.Deferred.</span><span class="entryName">fail<span class="args">(<span class="arg">res</span>)</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>
      </div>


     <div class="entryOverview">
       Creates a Deferred that has an initial error result.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">res</span>
        : <div class="fullType"><span class="type">*</span></div>
        <div class="entryOverview">The error result.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>&nbsp;
            The new Deferred.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line590">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.succeed"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.async.Deferred.</span><span class="entryName">succeed<span class="args">(<span class="arg">opt_result</span>)</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>
      </div>


     <div class="entryOverview">
       Creates a Deferred that has an initial result.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_result</span>
        : <div class="fullType"><span class="type">*</span></div>
        <div class="entryOverview">The result.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>&nbsp;
            The new Deferred.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line577">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.async.Deferred.when"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.async.Deferred.</span><span class="entryName">when<span class="args">(<span class="arg">value</span>,&nbsp;<span class="arg">callback</span>,&nbsp;<span class="arg">opt_scope</span>)</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>
      </div>


     <div class="entryOverview">
       Normalizes values that may or may not be Deferreds.

If the input value is a Deferred, the Deferred is branched (so the original
execution sequence is not modified) and the input callback added to the new
branch. The branch is returned to the caller.

If the input value is not a Deferred, the callback will be executed
immediately and an already firing Deferred will be returned to the caller.

In the following (contrived) example, if <code>isImmediate</code> is true
then 3 is alerted immediately, otherwise 6 is alerted after a 2-second delay.

<pre class="lang-js prettyprint">
var value;
if (isImmediate) {
value = 3;
} else {
value = new goog.async.Deferred();
setTimeout(function() { value.callback(6); }, 2000);
}

var d = goog.async.Deferred.when(value, alert);
</pre>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">value</span>
        : <div class="fullType"><span class="type">*</span></div>
        <div class="entryOverview">Deferred or normal value to pass to the callback.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">callback</span>
        : <div class="fullType"><span>?</span><span class="type">function (this:T, ?): </span></div>
        <div class="entryOverview">The callback to execute.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_scope</span>
        : <div class="fullType">(<span class="type">T</span><span>&nbsp;|&nbsp;</span><span class="type">undefined</span>)</div>
        <div class="entryOverview">An optional scope to call the callback in.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="class_goog_async_Deferred.html">goog.async.Deferred</a></span></div>&nbsp;
            A new Deferred that will call the input callback with the input value.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_third_party_closure_goog_mochikit_async_deferred.js.source.html#line641">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>
      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Package async</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">Package Reference</h2>
            <div id="sideTypeIndex" rootPath="" current="async.Deferred"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
